//
//  HWHomeModel.swift
//  HWanGame
//
//  Created by 王昌健 on 2021/12/24.
//  Copyright © 2021 94Wan. All rights reserved.
//

import UIKit
import HandyJSON

class HWHomeModel: HandyJSON {
    required init() {}
    var fenlei:[HWHomeFenLeiModel]?
    var game:[[HWHomeGameModel]]?
    /// 功能
    var gongneng:[HWHomeGongNengModel]?
    var guanfangtuijian:[HWHomeGuanFangTuiJianModel]?
    /// 轮播图
    var slide:[HWHomeSlideModel]?
    var tuijian:[HWHomeTuiJianModel]?
    var fanli_news:[HWHomeFanLiNewsModel] = []
    var main_slide:[HWHomeMainSlideModel] = []
}
class HWHomeMainSlideModel: HandyJSON {
    required init() {}
    var name = ""
    var icon = ""
    var type = ""
    var url = ""
}
class HWHomeFanLiNewsModel: HandyJSON {
    required init() {}
    var name = ""
}
class HWHomeConfigModel: HandyJSON {
    required init() {}
    
    var index_top:[HWHomeIndexTopModel] = []
    var onelogin = ""
    var qqlogin = ""
    var wxlogin = ""
    var shiwan_appid = ""
    var shiwan_key = ""
}
class HWHomeIndexTopModel: HandyJSON {
    required init() {}
    var name = ""
    var type = ""
    var status = false
    var gid = ""
}

class HWHomeFenLeiModel: HandyJSON {
    required init() {}
    /// 分类ID
    var id = 0
    /// 分类名
    var name = ""
    /// 图标
    var icon = ""
    /// 分类二级标题
    var content = ""
    /// 分类布局样式
    var style_type = ""
}

class HWHomeGameModel: HandyJSON {
    required init() {}
    /// 标签
    var biaoqian:[String] = []
    /// 游戏图标
    var icon = ""
    /// 游戏ID
    var id = ""
    /// 图片
    var image = ""
    /// 游戏名称
    var name = ""
    /// 评分
    var point = ""
    /// 大小
    var size = ""
    /// 分类
    var type = ""
    /// 视频
    var video = ""
    /// 是否折扣
    var zhekou = ""
    /// 充值折扣标签
    var pay = ""
    /// 排行
    var sort = 0
    
    var is_yuyue = 0
}

class HWHomeGongNengModel: HandyJSON {
    required init() {}
    
    /// 图标
    var icon = ""
    /// 是否要登录
    var login = ""
    /// 名称
    var name = ""
    var type = ""
    var url = ""
    
}

class HWHomeGuanFangTuiJianModel: HandyJSON {
    required init() {}
    
    /// 标签
    var biaoqian = ""
    /// 图标
    var icon = ""
    /// 游戏ID
    var id = ""
    /// 图片
    var image = ""
    /// 名称
    var name = ""
    /// 评分
    var point = ""
    /// 推荐指数
    var tuijianzhishu = 0.0
    /// 分类
    var type = ""
    
}

class HWHomeSlideModel: HandyJSON {
    required init() {}
    /// 标签
    var biaoqian:[String] = []
    var game_name = ""
    /// 游戏ID
    var gid = ""
    /// 图标
    var icon = ""
    /// 轮播ID
    var id = ""
    /// 图片
    var image = ""
    var link = ""
    /// 游戏名
    var name = ""
    /// 评分
    var point = ""
    var sort = ""
    /// 系统
    var system = ""
    var type = ""
    
}

class HWHomeTuiJianModel: HandyJSON {
    required init() {}
    /// 标签
    var biaoqian:[String] = []
    /// 图标
    var icon = ""
    /// 游戏ID
    var id = ""
    /// 图片
    var image = ""
    /// 名称
    var name = ""
    /// 评分 / 在线人数
    var point = ""
    /// 0 游戏  1 直播
    var style = ""
    /// 分类
    var type = ""
    
}

class HWHomeAlertModel:HandyJSON {
    required init() {}
    /// 名称
    var name = ""
    /// 类型
    var type = ""
    /// 是否开启
    var status = false
    /// 图片
    var image = ""
    var system = ""
    var sort = ""
    var id = ""
    var gid = ""
}

//MARK: 资讯
class HWHomeInfoCateModel:HandyJSON {
    required init() {}
    /// 名称
    var name = ""
    var id = 0
    var isSel = false
}

class HWHomeInfoModel:HandyJSON {
    required init() {}

    var infoData: [HWHomeInfoItemModel]?
    var banners:[HWHomeInfoBannerModel]?
}

class HWHomeInfoItemModel:HandyJSON {
    required init() {}

    var title = ""
    var id = 0
    var image = ""
    var time = 0
    var time_format = ""
    var zan = ""
    var pinglun = ""
    var look = ""
    var is_zan = 0
}

class HWHomeInfoBannerModel:HandyJSON {
    required init() {}

    var name = ""
    var id = 0
    var image = ""
    var link = ""
    var sort = 0
}

class HWHomeInfoDetailModel:HandyJSON {
    required init() {}

    var data: HWHomeInfoDetailDataModel?
    var author: HWHomeInfoDetailAuthorModel?
    var game: HWHomeInfoDetailGameModel?
    var game_yqw: [HWHomeInfoDetailGameModel]?
}

class HWHomeInfoDetailDataModel:HandyJSON {
    required init() {}

    var id = 0
    var title = ""
    var content = ""
    var time_format = ""
    var zan = ""
    var pinglun = ""
    var look = ""
    var is_zan = 0
    var is_shoucang = 0
    var share_url = ""
}

class HWHomeInfoDetailAuthorModel:HandyJSON {
    required init() {}

    var uid = 0
    var user_name = ""
    var avatar = ""
}

class HWHomeInfoDetailGameModel:HandyJSON {
    required init() {}
    
    var id = 0
    var name = ""
    var icon = ""
    var system_type_text = ""
    var content = ""
    var number = 0
    var point = 0
}
